<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>

  <style>
  .transfer{
    float: left;
    list-style: none;
    margin: 0 30px 0;
    padding: 20px;
    width: 200px;
    height: 200px;
    background-color: #ccc;
  }
  .transfer.over{
    border: 1px solid red;
  }

  .transfer li{
    user-select: none;
    padding: 10px 20px;
    cursor: pointer;
  }
  .transfer li:hover{
    background-color: #999;
  }

  </style>

  <h1 align="center">拖拽版穿梭框</h1>

  <ul class="transfer">
    <li draggable="true">张三</li>
    <li  draggable="true">李四</li>
    <li  draggable="true">王二</li>
  </ul>

  <ul class="transfer">

  </ul>

  <script>
  var LI = null;
  document.querySelectorAll('.transfer li').forEach(function(li){
    li.ondragstart = function(){
      LI = this;
    }
  })

   document.querySelectorAll('.transfer').forEach(function(ul){

    ul.ondragover = function( event ){
      event.preventDefault();
      if(LI.parentNode !== this) this.classList.add('over');
    }
    ul.ondrop = function(){
      this.append( LI );
      this.classList.remove('over');
    }

   })
  </script>
  
</body>
</html>